#ifndef CHESSBOTBOARD_HBOT_MOTION_H
#define CHESSBOTBOARD_HBOT_MOTION_H

#include "config.h"

/// hbot 相关
extern float hbot_x;
extern float hbot_y;

//初始化为0
extern long hbot_position[2];

typedef struct TwoValues {
    long m1_step_value;
    long m2_step_value;
} MotorSteps;


#ifdef HBOT_AXIS_1
// X | +a,0 | 顺，顺
MotorSteps calc_vector_x(float dis);
// Y | 0,a | 逆，顺
MotorSteps calc_vector_y(float dis);
#elif defined(HBOT_AXIS_2)
//X=Y
MotorSteps calc_vector_x(float dis);
//Y=-X
MotorSteps calc_vector_y(float dis);
#endif // HBOT_AXIS




#endif //CHESSBOTBOARD_HBOT_MOTION_H
